package com.wowoai.utils;

import com.wowoai.common.factoy.SnowflakeIdGenerator;


public class IdGeneratorUtil {
    private static SnowflakeIdGenerator snowflakeIdGenerator;

    public static void setSnowflakeIdGenerator(SnowflakeIdGenerator snowflakeIdGenerator) {
        IdGeneratorUtil.snowflakeIdGenerator = snowflakeIdGenerator;
    }

    public static Long nextId(){
        return snowflakeIdGenerator.nextId();
    }
}
